
from typing import List


def findIntersectionValues(self, nums1: List[int], nums2: List[int]) -> List[int]:
    s1,s2 = set(nums1),set(nums2)
    return [sum(x in s2 for x in nums1),sum(x in s1 for x in nums2)]

def findIntersectionValues1(self, nums1: List[int], nums2: List[int]) -> List[int]:
    return [sum(x in nums2 for x in nums1), sum(x in nums1 for x in nums2)]
